package com.pay.ioopos.fragment;

import com.pay.ioopos.DataFactory;
import com.pay.ioopos.PwdValidator;


public class SuperPwdSetFragment extends AbstractPwdSetFragment {

    @Override
    protected PwdValidator validator() {
        return pwd -> pwd.equals(DataFactory.getDataStore().getSuperPwd());
    }

    @Override
    protected void onSet(String pwd) {
        DataFactory.getDataStore().setSuperPwd(pwd);
    }
}
